var fs = require('fs');

//删除 newdir 目录

fs.rmdir('./newdir',function(err){
	if(err){
		throw err;
	}
	console.log('remove dir success.');
});